﻿@model DataEntity.SysUser


<script src="~/Scripts/View/UserForm.js" type="text/javascript"></script>

<div class="div_center">

    @using (Html.BeginForm("", "", FormMethod.Post, new { id = "userfm", name = "userfm" }))
    { 
        <fieldset class="datebox-button" style="height: auto; text-align: left; padding-top: 8px; padding-right: 8px; padding-bottom: 8px; padding-left: 8px;">
            <legend class="panel-title">用户信息</legend>


           <table class="TableBlock">
           
            <tr>
             
                <td  class="TableLabel" >
                    @Html.HiddenFor(model=>model.ID)
                    用户名:
                </td>
                <td class="TableData" >
                    
                        @Html.TextBoxFor(model => model.UserName)
                       
                </td>
               <td  class="TableLabel">
                   真实姓名:
                </td>
                <td class="TableData" >
                   
                         @Html.TextBoxFor(model => model.RealName)
                       
                </td>
            </tr>
             <tr>
                <td  class="TableLabel">
                性别:
                </td>
                <td class="TableData">
                    
                      @Html.RadioButtonFor(model => model.Sex, "false", new { @id = "Sex1" })<label for="Sex1" name="radioshow">男</label>
                        @Html.RadioButtonFor(model => model.Sex, "true", new { @id = "Sex2" })<label for="Sex2"  name="radioshow">女</label>
                       
                </td>
                <td  class="TableLabel">
                   邮箱:
                </td>
                <td class="TableData">
                     
                         @Html.TextBoxFor(model => model.Email)
                      
                </td>
            </tr>
            <tr>
                <td class="TableLabel" >
                   电话号码:
                </td>
                <td class="TableData" >
                         @Html.TextBoxFor(model => model.Tel)
                </td>
                <td  class="TableLabel">
                  手机号码:
                </td>
                <td class="TableData">
                      @Html.TextBoxFor(model => model.Mobile)
                     
                </td>
            </tr>
                 <tr>
                <td class="TableLabel" >
                   所屬角色:
                </td>
                <td class="TableData" >
                    <input  type="text" name="SysRoleID" id="SysRoleID" value=""/>
                        
                </td>
               
            </tr>
            <tr>
                <td  class="TableLabel">
                    备注:
                </td>
                <td class="TableData" colspan="3">
                    
                        @Html.TextAreaFor(model => model.Remark, new { cols = "3", rows = "4", style = "height:70px;width: 93%; text-align: left;" })
                       
                </td>
            </tr>
        </table>

        </fieldset>
    }

</div>


<script>
    $(function () {

      
        window.platform.UserForm.initPage("userfm", "@ViewBag.SysRoleID");

    });
  

</script>
